package com.example.homework.bean;

public class MusicMessage {
    private int icon;
    private String name;
    private String content;
    private String time1;
    private String time2;
    //右键146生成构造函数、getter和setter方法、字符串拼接
    public MusicMessage(int icon, String name, String content,String time1, String time2) {
        this.icon = icon;
        this.name = name;
        this.content = content;
        this.time1 = time1;
        this.time2 = time2;
    }


    public int getIcon() {
        return icon;
    }
    public void setIcon(int icon) {
        this.icon = icon;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;}
    public String getTime1() {
        return time1;
    }
    public void setTime1(String time1) {
        this.time1 = time1;
    }
    public String getTime2() {
        return time2;
    }
    public void setTime2(String time2) {
        this.time2 = time2;
    }


    @Override
    public String toString() {
        return "UserMessage{" +
                "icon=" + icon +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                '}'+", time1='" + time1 + '\'' +
                '}'+", time2='" + time2 + '\'' +
                '}';
    }
}
